package com.landiao.mapper;

import java.util.List;

import com.landiao.entities.ServiceItemRoleRela;

public interface ServiceItemRoleRelaMapper extends BaseMapper<ServiceItemRoleRela,String>{
    int deleteByPrimaryKey(String serviceItemRoleRelaId);

    int insert(ServiceItemRoleRela record);

    int insertSelective(ServiceItemRoleRela record);

    ServiceItemRoleRela selectByPrimaryKey(String serviceItemRoleRelaId);

    int updateByPrimaryKeySelective(ServiceItemRoleRela record);

    int updateByPrimaryKey(ServiceItemRoleRela record);
    
    /**
     * 根据服务项目ID获取与角色的关系
     * @param serviceItemId
     * @return
     */
    List<ServiceItemRoleRela> selectByItemId(String serviceItemId);
    
    void deleteByItemId(String serviceItemId);
}